import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/Home.vue'
import ScoreQuery from '@/views/ScoreQuery.vue'
import IndexPage from '@/views/Index.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  { 
    path: '/index', 
    name: 'Index', 
    component: IndexPage 
  },
  {
    path: '/score-query',
    name: 'ScoreQuery',
    component: ScoreQuery
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router